package bielan;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Properties;

public class DB {

	public static Connection getConnection() {
		Properties p = new Properties();
		p.setProperty("user", "root");
		p.setProperty("password", "root");
		Connection conn = null;
		 String url = "jdbc:mysql://localhost:3306/wifiap?useUnicode=true&amp;characterEncoding=UTF-8";
		try {
			conn = DriverManager.getConnection( url,p);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace(); 
		}
		return conn;
	}

}
